<template>
  <view class="container">
    <view class="back"></view>
    <view
    :style="{
      height: statusHeight+'px'
    }"
    style="background-color: #f5f5f5;position: fixed;top:0;width: 100%;z-index:999;left:0;"
    >
    </view>
    <view
    :style="{
      height: statusHeight+'px'
    }"
    ></view>
  </view>
</template>

<script>
import ClockCard from "../components/ClockCard.vue";
import ClockRecordCard from "../components/ClockRecordCard.vue"

export default {
  components: {
    ClockCard,
    ClockRecordCard
  },
  data() {
    return {
      statusHeight:0
    }
  },
  mounted() {
    this.getStatusHeight();
  },
  methods: {
    // 获取状态栏高度
    getStatusHeight(){
      // uniapp获取状态栏高度
      this.statusHeight = uni.getSystemInfoSync().statusBarHeight;
    },

  }
}
</script>

<style lang="scss" scoped>
</style>